<extend name="Base/common"/>
<block name="style">
    <link href="http://www.jsdaima.com/Upload/1481378180/css/reset.css" rel="stylesheet" />
    <link href="__CSS__/index.css" rel="stylesheet">
    <style>
        .search-input{
            width: 180px;
            border: 0 none;
            padding: 2px 4px;
            height: 24px;
            line-height: 26px;
        }
        .sch-btn {
            background-color: white;
            float: right;
            padding: 0 10px;
            height: 28px;
            line-height: 28px;
            vertical-align: middle;
        }

        .btn-search {
            display: inline-block;
            margin-top: 5px;
            width: 16px;
            height: 16px;
            background: url("__PUBLIC__/Admin/images/bg_icon.png") no-repeat -50px 0;
        }
    </style>
</block>
<block name="body">
    <div class="warrper">
        <div class="header">
            <div class="w1000 clearFloat">
                <div class="xglogo floatLeft">
                    <a href="{:U('Index/index')}"><img src="__IMG__/index/xglogo.png" alt=""/></a>
                </div>

            </div>
        </div>


        <!--content-->
        <div class="content">
            <div class="w1000">
                <h3 class="xgh3">当前位置：<a href="">招生管理</a>&nbsp;>&nbsp;<a href="">学生信息管理</a></h3>
                <div class="clearFloat">
                    <div class="xgleft floatLeft">
                        <h3 class="xglefth3">招生管理</h3>
                        <div class="xgleftdiv">
                            <ul>
                                <li class="border-d-b-dddddd">
                                    <a href="{:U('Index/agent')}">学生信息填报</a>
                                </li>
                                <li>
                                    <a href="{:U('Index/sudentManage')}" class="xgleactive">学生信息管理</a>
                                </li>
                                <li>
                                    <a href="{:U('Index/logout')}">退出登录</a>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="xgright floatRight">
                        <h3 class="xgrighth3">学生信息管理</h3>
                        <div class="glcont">
                            <div class="yuanxiao">
                                <div class="xylist">
                                    <ul class="clearFloat">
                                        <li class="xyliactive">
                                            <a id="exportExcel" href="{:U('File/exportExcel',array('status'=>I('get.status')))}">导出</a>
                                        </li>
                                        <li class="xyliactive">
                                            <a href="{:U('Index/sudentManage',array('status'=>1))}">已审核</a>
                                        </li>
                                        <li class="xyliactive">
                                            <a href="{:U('Index/sudentManage',array('status'=>0))}">未审核</a>
                                        </li>

                                        <li style="background-color:transparent;float: right;">
                                            <input type="text" name="search_word" class="search-input" value="{:I('search_word')}" placeholder="请输入姓名或者身份证号">
                                            <a class="sch-btn" href="javascript:;" id="search" url="{:U('Index/sudentManage')}"><i class="btn-search"></i></a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="xytable mt40">
                                    <table class="xytablwidt">
                                        <tr>
                                            <th width="6%">编号</th>
                                            <th width="15%">姓名</th>
                                            <th width="">身份证</th>
                                            <th width="">首次提交时间</th>
                                            <th width="10%">是否缴费</th>
                                            <th width="">凭证上传时间</th>
                                            <th width="">状态</th>
                                            <th width="12%">操作</th>
                                        </tr>
                                      <volist name="info" id="vo">
                                        <tr>
                                            <td>{$vo.id}</td>
                                            <td>{$vo.name}</td>
                                            <td>{$vo.ID_number}</td>
                                            <td>{$vo.create_time|time_format}</td>
                                            <td><empty name="vo['pay_evidence']">未交费<else />已缴费</empty></td>
                                            <td><if condition="$vo['upload_time'] gt 0">{$vo.upload_time|time_format}<else />还未上传</if></td>
                                            <td><if condition="$vo['status'] eq 0">未审核<else />已审核</if></td>
                                            <td>
                                                <empty  name="vo['pay_evidence']">
                                                    <a href="{:U('editSudentInfo',array('id'=>$vo['id']))}">编辑</a>
                                                 <else />
                                                    <a href="{:U('showStudentInfo',array('id'=>$vo['id']))}">查看</a>
                                                </empty >
                                            </td>
                                        </tr>
                                      </volist>
                                    </table>
                                </div>
                                <!-- 分页 -->
                                <if condition="$total gt 12">
                                    <div class="page">
                                        {$page}
                                    </div>
                                </if>
                            </div>
                            <br> <br>
                        </div>
                        <br> <br> <br> <br>
                    </div>
                </div>
            </div>
        </div>

        <!--content end-->
    </div>
    <!--warrper end-->
</block>

<block name="script">
    <script type="text/javascript">
        $(function(){
            //搜索功能
            $("#search").click(function(){
                var url = $(this).attr('url');
                var query  = $("input[name=search_word]").serialize();
                query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
                query = query.replace(/^&/g,'');
                if( url.indexOf('?')>0 ){
                    url += '&' + query;
                }else{
                    url += '?' + query;
                }
                window.location.href = url;
            });


        });

    </script>

</block>